<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI面试官 - 智能面试平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/boxicons@2.0.7/css/boxicons.min.css" rel="stylesheet">
    <link href="/static/css/style.css" rel="stylesheet">
    <link href="/static/css/index.css" rel="stylesheet">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark">
        <div class="container">
            <a class="navbar-brand" href="#">
                <div class="robot-icon">
                    <i class='bx bx-bot'></i>
                    <div class="robot-glow"></div>
                </div>
                AI面试官
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link active" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#features">产品特性</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#docs">使用文档</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#about">关于我们</a>
                    </li>
                </ul>
                <div class="nav-buttons">
                    <a href="/loginView" class="btn btn-outline-light me-2">登录</a>
                    <a href="/registerView" class="btn btn-primary">立即注册</a>
                </div>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <main>
        <!-- Hero部分 -->
        <section class="hero">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-lg-6">
                        <h1 class="hero-title">
                            <span class="gradient-text">AI驱动</span>的
                            <br>智能面试平台
                        </h1>
                        <p class="hero-subtitle">
                            利用最新的人工智能技术，为求职者提供专业的模拟面试体验，帮助企业找到最佳人才
                        </p>
                        <div class="hero-buttons">
                            <a href="/registerView" class="btn btn-primary btn-lg">
                                开始使用 <i class="bx bx-right-arrow-alt"></i>
                            </a>
                            <a href="#demo" class="btn btn-outline-light btn-lg ms-3" id="showInterview">
                                观看演示 <i class="bx bx-play"></i>
                            </a>
                            <script>
                                // 在 index.js 或页面底部添加以下代码
document.addEventListener('DOMContentLoaded', function() {
    {#const demoButton = document.querySelector('.entry-card .btn-primary');#}
    const demoButton = document.getElementById('showInterview');

    demoButton.addEventListener('click', function(e) {
        const newSrc = this.getAttribute('data-video-src');
        const videoElement = document.querySelector('#demo video');

        if (videoElement) {
            videoElement.src = newSrc;
            videoElement.load(); // 重新加载视频
        }
    });
});
                            </script>

                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div class="hero-image">
                            <div class="interview-scene">
                                <div class="ai-interviewer">
                                    <div class="ai-avatar"></div>
                                    <div class="ai-pulse"></div>
                                </div>
                                <div class="chat-bubbles">
                                    <div class="bubble ai-bubble">请介绍一下你的项目经验</div>
                                    <div class="bubble user-bubble">我主导开发了一个企业级管理系统...</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="hero-shape"></div>
        </section>

        <!-- 入口选择 -->
        <section class="entry-section">
            <div class="container">
                <div class="row">
                    <div class="col-md-6">
                        <div class="entry-card">
                            <div class="entry-icon">
                                <i class="bx bx-user"></i>
                            </div>
                            <h3>求职者入口</h3>
                            <p>智能模拟真实面试场景，提供专业的反馈和建议</p>
{#                            <a href="#demo" class="btn btn-primary">求职者角色演示</a>#}
                            <a href="#demo"
   class="btn btn-primary" id="btnshowUser"
   data-video-src="static/video/">
    求职者角色演示
</a>
                            <script>
                                // 在 index.js 或页面底部添加以下代码
document.addEventListener('DOMContentLoaded', function() {
    {#const demoButton = document.querySelector('.entry-card .btn-primary');#}
    const demoButton = document.getElementById('btnshowUser');

    demoButton.addEventListener('click', function(e) {
        const newSrc = this.getAttribute('data-video-src');
        const videoElement = document.querySelector('#demo video');

        if (videoElement) {
            videoElement.src = newSrc;
            videoElement.load(); // 重新加载视频
        }
    });
});
                            </script>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="entry-card">
                            <div class="entry-icon">
                                <i class="bx bx-building"></i>
                            </div>
                            <h3>企业入口</h3>
                            <p>高效管理招聘流程，快速筛选合适人才</p>
                             <a href="#demo"
   class="btn btn-primary" id="btnshowCompany"
   data-video-src="static/video/user.mp4">
    求职者角色演示
</a>
                            <script>
                                // 在 index.js 或页面底部添加以下代码
document.addEventListener('DOMContentLoaded', function() {
    {#const demoButton = document.querySelector('.entry-card .btn-primary');#}
    const demoButton = document.getElementById('btnshowCompany');

    demoButton.addEventListener('click', function(e) {
        const newSrc = this.getAttribute('data-video-src');
        const videoElement = document.querySelector('#demo video');

        if (videoElement) {
            videoElement.src = newSrc;
            videoElement.load(); // 重新加载视频
        }
    });
});
                            </script>


                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 特性介绍 -->
        <section class="features" id="features">
            <div class="container">
                <h2 class="section-title text-center">强大的 AI 能力</h2>
                <p class="section-subtitle text-center">通过代码补全、代码推荐、单测生成等能力，在编程的各个阶段提供协助支持</p>
                <div class="row g-4 mt-5">
                    <div class="col-md-4">
                        <div class="feature-card">
                            <div class="feature-icon">
                                <i class="bx bx-code-alt"></i>
                            </div>
                            <h4>智能代码分析</h4>
                            <p>实时分析代码质量，提供优化建议</p>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="feature-card">
                            <div class="feature-icon">
                                <i class="bx bx-conversation"></i>
                            </div>
                            <h4>自然语言交互</h4>
                            <p>智能理解面试问题，提供准确回答</p>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="feature-card">
                            <div class="feature-icon">
                                <i class="bx bx-chart"></i>
                            </div>
                            <h4>数据分析报告</h4>
                            <p>生成详细的面试分析和改进建议</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 演示视频 -->
        <section class="demo" id="demo">
            <div class="container">
                <div class="demo-content">
                    <div class="demo-video">
                        <video
                            src="/static/video/InterView.mp4"
                            poster="p1.png"
                            class="img-fluid"
                            controls
                            width="100%"
                        ></video>

                    </div>
                </div>
            </div>
        </section>
    </main>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <div class="row">
                <div class="col-md-4">
                    <h5>关于我们</h5>
                    <p>AI面试官是一个智能面试平台，致力于为求职者和企业提供高效的面试解决方案。</p>
                </div>
                <div class="col-md-2">
                    <h5>产品</h5>
                    <ul class="list-unstyled">
                        <li><a href="#">功能特性</a></li>
                        <li><a href="#">使用案例</a></li>
                        <li><a href="#">定价</a></li>
                    </ul>
                </div>
                <div class="col-md-2">
                    <h5>资源</h5>
                    <ul class="list-unstyled">
                        <li><a href="#">文档</a></li>
                        <li><a href="#">博客</a></li>
                        <li><a href="#">社区</a></li>
                    </ul>
                </div>
                <div class="col-md-4">
                    <h5>联系我们</h5>
                    <ul class="list-unstyled">
                        <li><i class="bx bx-envelope"></i> 2837797269@qq.com</li>
                        <li><i class="bx bx-phone"></i>13578397734</li>
                    </ul>
                </div>
            </div>
            <hr>
            <div class="text-center">
                <p>&copy; 2024 AI面试官. All rights reserved.</p>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <script src="/static/js/index.js"></script>
</body>
</html> 